package cn.com.code.generator.vo;

import cn.com.do1.dsf.common.validator.group.AddGroup;
import cn.com.do1.dsf.common.validator.group.UpdateGroup;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;
import java.util.Map;

@Data
public class BillTypeCode {
    @NotBlank(message = "单据编码不能为空")
    @ApiModelProperty(value = "单据编码", required = true)
    private String billTypeCode;

    @NotNull(message="菜单编码集合不能为空", groups = {AddGroup.class ,  UpdateGroup.class})
    @ApiModelProperty(value = "菜单编码集合", required = true)
    private List<String> menuCodes;

    @NotBlank(message = "映射关系String类型")
    @ApiModelProperty(value = "映射关系String类型", required = true)
    private String flowAuthRelation;

    @ApiModelProperty(value = "要素编码给权限", required = true)
    private List<String> eleCodes;

    @ApiModelProperty(value = "映射关系把String类型转为map类型", required = true)
    private Map<String,String> flowAuthRelationQtToQx;

    @ApiModelProperty(value = "权限返回的业务数据对应的值", required = true)
    private Map<String,List<String>> flowAuthRelationQxToFlow;


    @ApiModelProperty("单位代码")
    private List<String> agencyCode;
    @ApiModelProperty("业务主管部门代码")
    private List<String> deptCode;
    @ApiModelProperty("业务主管处自主选用")
    private List<String> manageMofDepCode;
    @ApiModelProperty("资金归口处室代码")
    private List<String> bgtMofDepCode;
}
